
import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -29
 * Time: 22:26
 */
public class Main {
    public static void main(String[] args) {
        Circle[] circles = {new Circle(3), new Circle(2), new Circle(1)};
        Rectangle[] rectangles = {new Rectangle(3, 4), new Rectangle(2, 5), new Rectangle(1, 6)};

        ArrayList<Shape> shapes = new ArrayList<Shape>();
        for (Circle c : circles)
            shapes.add(c);
        for (Rectangle r : rectangles)
            shapes.add(r);

        GeoArrayList geoList = new GeoArrayList(shapes);

        geoList.displayGeoList();
    }
}